/********************************************************************
*	MEF an XML UI framework
*	Filename:	MEFComponent.h
*	Author:		Mikael Eriksson
*
********************************************************************/

#if !defined(_CMEFCOMPONENT_H)
#define _CMEFCOMPONENT_H

class CMEFPlugin;

class CMEFComponent
{
public:
	CMEFComponent(CMEFPlugin* aPlugin);
	virtual ~CMEFComponent();

	virtual void SetLocalPos(int aX, int aY, int aZ);
	virtual void UpdateToComponent(const CMEFComponent& aComponent);
	
	virtual int X() const;
	virtual int Y() const;
	virtual int Z() const;
	virtual void SetLocalX(int aX);
	virtual void SetLocalY(int aY);
	virtual void SetLocalZ(int aZ);

	virtual CMEFPlugin* Plugin();

private:
	CMEFPlugin* iPlugin;
	int iX, iY, iZ;
	int iLocX, iLocY, iLocZ;
};

#endif //_CMEFCOMPONENT_H